package com.cloud.code.真题;

import java.util.Scanner;

public class Demo20 {

    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);

        while (scanner.hasNext()) {
            int start = scanner.nextInt();
            int end = scanner.nextInt();

            for (int i = start; i <= end; i++) {
                for (int j = start; j <= end; j++) {
                    if (i == j) {
                        continue;
                    }
                    for (int k = start; k <= end; k++) {
                        if (i == k || j == k) {
                            continue;
                        }
                        if (k * k == i * i + j * j
                                && i < j && j < k
                                && huzhi(i, j) == 1
                                && huzhi(i, k) ==1
                                && huzhi(j, k) ==1) {
                            System.out.println(i + " " + j + " " + k);
                        }

                    }
                }
            }


        }
    }

    private static int huzhi(int i, int j) {

        if (i == 0 || j == 0) {
            return 1;
        }
        if (i % j == 0) {
            return j;
        }

        return huzhi(j, i % j);

    }
}
